﻿using SqlSugar;

namespace Model.Entity
{
    [SugarTable("role")]
    public class RoleEntity : BaseEntity
    {
        [SugarColumn(IsNullable = false, ColumnDescription = "角色名称")]
        public string Name { set; get; }

        [Navigate(NavigateType.OneToMany, nameof(RouteBtRoleEntity.RoleId), nameof(Id))]
        public List<RouteBtRoleEntity> Routes { get; set; }
    }
}
